package moodish.server;



import java.util.LinkedList;
/**
 * The client of moodish network. The client have a nickname and his list of friends
 * 
 */
public class ServerClient {
	
	private String nickName;
	private boolean isConnected = false;
	private LinkedList<ServerClient> listOfFriends; 
	
	
	public ServerClient(String nickName){
		this.nickName = nickName;
		this.listOfFriends = new LinkedList<ServerClient>();
	}
	
	
	/**
	 * @return the nickName
	 */
	public String getNickName() {
		return nickName;
	}
	/**
	 * @param nickName the nickName to set
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	/**
	 * @return the isConnected
	 */
	public boolean isConnected() {
		return isConnected;
	}
	/**
	 * @param isConnected the isConnected to set
	 */
	public void setConnected(boolean isConnected) {
		this.isConnected = isConnected;
	}
	/**
	 * @return the listOfFriends
	 */
	public LinkedList<ServerClient> getListOfFriends() {
		return listOfFriends;
	}
	/**
	 * @param listOfFriends the listOfFriends to set
	 */
	public void setListOfFriends(LinkedList<ServerClient> listOfFriends) {
		this.listOfFriends = listOfFriends;
	}
	
}

